<script>
	export default {
		onLaunch: function(options) {
			console.log(options)
			let  extraData = options.referrerInfo.extraData
			if(extraData){	
			uni.setStorageSync("recycle_type", extraData.recycle_type);
			}
				console.log(uni.getStorageSync("recycle_type"),'arguments231231')
			if(options.query.pid){
				const scene = options.query.pid
				uni.setStorageSync("share_pid", scene);
				console.log(uni.getStorageSync("share_pid"),'打印内存share_id')
			}else{
				const scene = options.query.scene
				uni.setStorageSync("share_pid", scene);
			}
		},

		onLoad: function(options) {
			console.log(options)
			
		
		},

		onShow: function() {
				let query = wx.getLaunchOptionsSync().query;
			  console.log(wx.getLaunchOptionsSync(),'App Show')
			    if (query.pid) { // 1044 表示从好友聊天或群聊卡片打开小程序
					uni.setStorageSync("share_pid", query.pid);
			    }

		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/static/css/common.scss";
	@import "/static/iconfont/font.scss";

	/* 无数据 */
	.nodata {
		padding: 100upx 0;
		text-align: center;
		display: block;
		width: 100%;
	}

	.nodata image {
		width: 500upx;
		margin: 0 auto;
		opacity: 0.6;
	}

	.nodata p {
		color: #333;
		font-size: 30upx;
		margin-top: 40upx;
		display: block;
		font-weight: bold;
	}

	.nodata p.black {
		color: #333;
	}

	uni-checkbox .uni-checkbox-input {
		// border-radius: 50% !important;  
		color: #4D7CF4 !important;
		width: 40rpx !important;
		height: 40rpx !important;
		line-height: 40rpx !important;
		text-align: center !important;
	}

	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
		width: 40rpx !important;
		height: 40rpx !important;
		line-height: 40rpx !important;
		text-align: center !important;
		color: #fff !important;
		background: #4D7CF4 !important;
	}

	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
		width: 40rpx !important;
		height: 40rpx !important;
		line-height: 40rpx !important;
		text-align: center !important;
		font-size: 40rpx !important;
		font-weight: bold !important;
		color: #fff !important;
		background: #4D7CF4 !important;
		border: #4D7CF4 !important;
	}

	/* 微信中样式 */
	/* #ifdef APP-PLUS ||MP-WEIXIN */
	checkbox .wx-checkbox-input {
		color: #4D7CF4 !important;
	}

	checkbox .wx-checkbox-input.wx-checkbox-input-checked {
		color: #fff !important;
		background: #4D7CF4 !important;
	}

	.wx-checkbox-input.wx-checkbox-input-checked {
		border: #4D7CF4 !important;
	}

	/* #endif */
</style>